'''
Created on Jan 20, 2013

@author: dmatthews
'''
import common.defines as defines

class Card(object):

    def __init__(self, face, suit):
        self.face = face
        self.suit = suit
        self.value = defines.values[face]

        self.print_face = defines.faces[face]
        self.print_suit = defines.suits[suit]

    def display(self):
        print "{0} of {1}".format(self.face, self.suit)

    def __str__(self):
        return "{0} of {1}".format(self.face, self.suit)

    def __repr__(self):
        return "'{0} of {1}'".format(self.face, self.suit)
